//
//  AFNetworkHandler.h
//  Project_B
//
//  Created by 张闯的mac pro on 15/11/23.
//  Copyright © 2015年 张闯. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^NETBLOCK)(id result);

@interface AFNetworkHandler : NSObject

+ (void)getUrl: (NSString *)url cookie: (NSString *)cookie result:(NETBLOCK)block;

//参数二:POST请求body
+ (void)requestPOSTWithURL:(NSString *)urlStr body:(NSData *)body comletion:(NETBLOCK)block;

+ (void)requestGETWithURL:(NSString *)urlStr comletion:(NETBLOCK)block;

@end
